package com.fire.eyes.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 登录记录表
 * </p>
 *
 * @author MIT123
 * @since 2018-04-27
 */
@TableName("t_mit_record_login")
public class TMitRecordLogin extends Model<TMitRecordLogin> {

    private static final long serialVersionUID = 1L;

    /**
     * seq
     */
    @TableId(value = "loginseq", type = IdType.AUTO)
    private Integer loginseq;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 发送模块，业务自定义
     */
    private String who;
    /**
     * 用户号
     */
    private String userid;
    /**
     * 渠道号
     */
    private Integer chanelid;
    /**
     * 渠道名称
     */
    private String chanelname;
    /**
     * 发送手机
     */
    private String phone;
    /**
     * 登录时间
     */
    private Date logintime;
    /**
     * 0,页面登录，1 微信登录
     */
    private String logintype;


    public Integer getLoginseq() {
        return loginseq;
    }

    public void setLoginseq(Integer loginseq) {
        this.loginseq = loginseq;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Integer getChanelid() {
        return chanelid;
    }

    public void setChanelid(Integer chanelid) {
        this.chanelid = chanelid;
    }

    public String getChanelname() {
        return chanelname;
    }

    public void setChanelname(String chanelname) {
        this.chanelname = chanelname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getLogintime() {
        return logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    public String getLogintype() {
        return logintype;
    }

    public void setLogintype(String logintype) {
        this.logintype = logintype;
    }

    @Override
    protected Serializable pkVal() {
        return this.loginseq;
    }

    @Override
    public String toString() {
        return "TMitRecordLogin{" +
        "loginseq=" + loginseq +
        ", createtime=" + createtime +
        ", who=" + who +
        ", userid=" + userid +
        ", chanelid=" + chanelid +
        ", chanelname=" + chanelname +
        ", phone=" + phone +
        ", logintime=" + logintime +
        ", logintype=" + logintype +
        "}";
    }
}
